package GUI;

import javax.swing.JPanel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;

public class CustomerMain extends JPanel{

	public CustomerMain()
	{
		setLayout(null);
		
		JButton btnOneTimeParking = new JButton("One Time parking service");
		btnOneTimeParking.setFont(new Font("Tahoma", Font.PLAIN, 17));
		btnOneTimeParking.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				OneTimeRequest otr=new OneTimeRequest();
				MainScreen.card.add("OneTimeRequest",otr);
				MainScreen.cardLayot.show(MainScreen.card,"OneTimeRequest");
				
				
			}
		});
		btnOneTimeParking.setBounds(38, 190, 233, 36);
		add(btnOneTimeParking);
		
		JButton btnExit = new JButton("Exit");
		btnExit.setFont(new Font("Tahoma", Font.PLAIN, 17));
		btnExit.setBounds(456, 280, 97, 36);
		add(btnExit);
		
		initComponent();
	}
	
	public void initComponent()
	{
		
	}
}
